home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q37794
< prev
next >
Wrap
Text File
|
1988-11-15
|
919b
|
39 lines
Q37794 gcvt Generates Exponential Notation for 0.0123
C Compiler
5.10 | 5.10
MS-DOS | OS/2
Summary:
The gcvt() function returns an exponential number in the string even
if the number fits in the specified precision when the number is of
the form 0.0x, where x is any digit(s).
Microsoft has confirmed this to be a problem in Version 5.10. We are
researching this problem and will post new information as it becomes
available.
More Information:
The following code demonstrates this problem:
#include <stdio.h>
#include <stdlib.h>
char buffer[50];
int precision=20;
main()
{
gcvt(-0.1123,precision,buffer); /* will give decimal output*/
printf("buffer ........\"%s\"\n",buffer);
gcvt(-0.0123,precision,buffer); /* will give exponential output*/
printf("buffer ........\"%s\"\n",buffer);
}
Keywords: buglist5.10
Updated 88/11/15 06:14